﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 享元模式
{
    class ConcreteFlyweight : Flyweight
    {
        private readonly string _intrinsicstate;

        public ConcreteFlyweight(string innerState)
        {
            _intrinsicstate = innerState;
        }

        public override void Operation(int extrinsicstate)
        {
            Console.WriteLine("具体实现类: intrinsicstate {0}, extrinsicstate {1}", _intrinsicstate, extrinsicstate);
        }
    }
}
